<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<title>eBarrio</title>
</head>
<body>


	<h1>Usuario</h1>
	<p>Gestión Datos usuario</p>
	<?php if (isset($loginError)): ?>
		<p><?php htmlout($loginError); ?></p>
	<?php endif; ?>

	<form action="" method="post">
		<div>
			<input type="hidden" name="action" value="desconectar">
			<input type="submit" value="Cerrar Sesion">
		</div>
	</form>
		
	<form action="" method="post">
		<div>
			<label for="usuario">Usuario: <input type="text" name="usuario" id="usuario" value='<?php echo $username ?>'>
			</label>
		</div>
		<div>
			<label for="email">Email: <input type="text" name="email" id="email" value='<?php echo $email ?>'>
			</label>
		</div>
		<div>
			<label for="recordar">Recordar: <input type="checkbox" name="recordar" id="recordar" value="1" <?php echo $recordar ?>>
			</label>
		</div>
		<div>
			<input type="hidden" name="action" value="guardarcambios">
			<input type="submit" value="Guardar Cambios">
		</div>
	</form>

	<form action="" method="post">
		<div>
			<label for="passwordold">Pasword anterior: <input type="text" name="passwordold" id="passwordold">
			</label>
		</div>
		<div>
			<label for="password1">Pasword nuevo: <input type="text" name="password1" id="password1">
			</label>
		</div>
		<div>
			<label for="password2">Repita pasword nuevo: <input type="text" name="password2" id="password2">
			</label>
		</div>
		<div>
			<input type="hidden" name="action" value="cambiarpassword">
			<input type="submit" value="Cambiar Password">
		</div>
	</form>

	<form action="" method="post">
		<div>
			<input type="hidden" name="action" value="salir">
			<input type="submit" value="Salir">
		</div>
	</form>

</body>
</html>

